Crate ic_cdk_macros

source ·
Expand description

This crate provide a set of attribute macros to faciliate canister development.

The macros fall into two categories:

  • To register functions as canister entry points
  • To import another canister as a rust struct for inter-canister operation.

Register functions as canister entry points

These macros are directly related to the Internet Computer Specification.

Import another canister as a rust struct

Attribute Macros

  • Register the canister_heartbeat entry point of a canister.
  • Import another canister as a rust struct.
  • Register the canister_init entry point of a canister.
  • Register the canister_inspect_message entry point of a canister.
  • Register the canister_post_upgrade entry point of a canister.
  • Register the canister_pre_upgrade entry point of a canister.
  • Register a query call entry point.
  • Register an update call entry point.